package com.xinlianshiye.im.service

import com.xinlianshiye.im.bean.FriendApplication
import com.xinlianshiye.im.bean.FriendApplication.ApplyStateEnum

interface FriendApplicationService {
    /**
     * 发起好友申请
     */
    fun apply(userId: Int?, targetUserId: Int?, postscript: String?): FriendApplication

    /**
     * 回复好友申请
     */
    fun reply(id: Int?, state: ApplyStateEnum?, reply: String?): FriendApplication
    fun list(userId: Int?): List<FriendApplication?>
    fun getOrElseThrow(applyId: Int?): FriendApplication
}